﻿<%@ Page Title="View Car Capactiy" Language="C#" MasterPageFile="~/Provider/ProposalForm/Proposal_PrintPreview.master"
    AutoEventWireup="true" CodeFile="ViewProviderProposalFormDetailPrintPreview.aspx.cs"
    Inherits="Provider_ViewProviderProposalFormDetailPrintPreview" %>

<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" runat="Server">
    <div class="provider_inner">
        <h1>
            <asp:Label ID="lblFormTitle" runat="server" Text="Label"></asp:Label>&nbsp Statement</h1>
        <div>
            <asp:Label ID="lblProviderCompanyInformation" runat="server" Text=""></asp:Label>
        </div>
        <div>
            <%--<b>Cover Type</b> :
            <asp:DropDownList ID="ddlCXCoverageType" runat="server">
            </asp:DropDownList>--%>
            <br />
            <b>Statement Date</b> :<asp:Label ID="lblDate" runat="server" Text=""></asp:Label>
            <div style="float: right; text-align: left">
                <b>Printed Date/Time</b> :<asp:Label ID="lblPrintDate" runat="server" Text=""></asp:Label>
            </div>
            <asp:ImageButton ID="ImageButton1" ImageUrl="~/Provider/images/buttons/submit1.gif"
                runat="server" Visible="false" OnClick="ImageButton1_Click" />
            <div style="display: none">
                <asp:TextBox ID="txtModifiedDate" runat="server"></asp:TextBox></div>
        </div>
        <asp:GridView ID="grvResultViewSummary" runat="server" AllowPaging="True" AllowSorting="True"
            AutoGenerateColumns="False" CellPadding="2" CssClass="progridstyle" EmptyDataText="There are no data records to display."
            GridLines="None" DataSourceID="sqlDsProposalFormDetail" OnRowDataBound="grvResultViewSummary_RowDataBound">
            <Columns>
                <asp:BoundField DataField="ProposalFormDetailID" HeaderText="ProposalFormSummaryID"
                    Visible="false" InsertVisible="False" ReadOnly="True" SortExpression="ProposalFormSummaryID" />
                <asp:BoundField DataField="ModifiedDate" HeaderText="Date Submitted" SortExpression="ModifiedDate" />
                <asp:TemplateField HeaderText="Reference Number">
                    <ItemTemplate>
                        <asp:Label ID="lblRefNo" runat="server"></asp:Label>
                    </ItemTemplate>
                </asp:TemplateField>
                <asp:BoundField DataField="CustomerName" HeaderText="Proposer's Name" SortExpression="CustomerName" />
                <asp:BoundField DataField="NRIC" HeaderText="NRIC/Passport" SortExpression="NRIC" />
                <asp:BoundField DataField="Premium" DataFormatString="{0:c}" HeaderText="Premium ($)"
                    SortExpression="Premium" />
                <asp:BoundField DataField="ProviderCompanyId" Visible="false" HeaderText="ProviderCompanyId"
                    SortExpression="ProviderCompanyId" />
                <asp:BoundField DataField="RefCEUserId" Visible="false" HeaderText="RefCEUserId"
                    SortExpression="RefCEUserId" />
            </Columns>
            <FooterStyle />
            <PagerStyle />
            <SelectedRowStyle CssClass="progridover" />
            <HeaderStyle CssClass="progridheader" />
            <EditRowStyle />
            <AlternatingRowStyle CssClass="progridodd" />
            <RowStyle CssClass="progrideven" />
        </asp:GridView>
        <asp:SqlDataSource ID="sqlDsProposalFormDetail" runat="server" ConnectionString="<%$ ConnectionStrings:CX_DBConnectionString %>"
            SelectCommand="sprocProviderProposalDetailsSelectItemList" SelectCommandType="StoredProcedure">
            <SelectParameters>
                <asp:SessionParameter Name="ProviderCompanyId" SessionField="ProviderCompanyId" Type="Int64" />
                <asp:QueryStringParameter Name="FormType" QueryStringField="FormType" Type="String" />
                <asp:SessionParameter Name="RefCEUserId" SessionField="UserId" Type="Int64" />
                <asp:ControlParameter ControlID="txtModifiedDate" Name="SelectedDate" PropertyName="Text"
                    Type="String" />
            </SelectParameters>
        </asp:SqlDataSource>
        <br />
        <asp:ImageButton Visible="false" OnClientClick="javascript:return confirm('Are you sure to go back?');"
            ID="ibtBack" runat="server" ImageUrl="~/Provider/images/buttons/back1.gif" OnClick="ibtBack_Click" />
        <div style="float: right; text-align: left">
            <asp:TextBox Visible="false" ID="txtHidTotalAmount" runat="server">0</asp:TextBox>
            <asp:Label ID="lblTotalAmount" Font-Bold="true" runat="server" Text="Total Amount :"></asp:Label>
        </div>
    </div>
    <div>
        Please notify us of any discrepancies within 7 working days from the statement date.
    </div>
    <br />
    <div style="float: left; text-align: left">
        <a href="#" onclick="window.print();return false;">Print Statments</a>
    </div>
    <br />
    <div style="float: right; text-align: left">
        <asp:Label ID="lblCompanyInformation" runat="server" Text=""></asp:Label>
    </div>
</asp:Content>
